package com.example.custom.web.service.impl;

import io.etcd.jetcd.Client;
import io.etcd.jetcd.KV;
import io.etcd.jetcd.api.KeyValue;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * @descriptions:
 * @author: otitan-jianghongkai
 * @date: 2024/1/8 11:36
 * @version: 1.0
 */
@Service
public class EtcdService {

    private Client client;

   @Value("${etcd.url}")
    private String etcdEndpoint;

    public void init() {
        //String etcdEndpoint = "http://172.25.1.150:13379";
        client = Client.builder().endpoints(etcdEndpoint).build();
    }
}
